<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8" />
<title>注册</title>
<link rel="stylesheet" type="text/css" href="css/reg.css" />
<script src="js/login.js"></script>
<script type="text/javascript">
function check(){
	var pwd1=document.regForm.pwd.value;
	var pwd2=document.regForm.pwd1.value;
	if(pwd1===pwd2){
		return true;
	}else{
		alert("两次密码不一致");//弹出警告
		document.regForm.pwd.value="";
		document.regForm.pwd1.value="";
		return false;
	}
}
</script>
</head>
<body>
<img class="bgone" src="img/1.jpg" />
<img class="pic" src="img/a.png" />
<div class="table">
	<div class="wel">计算机工程学院科研服务平台</div>
	<div class="wel1">HE NAN JING MAO ZHI YE XUE YUAN</div>
	<form action="UserServlet" name="regForm" method="post" onSubmit="check()">
	<input type="hidden" name="method" value="reg">
	<div class="name">
		<div id="yonghu" style=""><img src="img/yhm.png" /></div>
		<input type="text" name="name" placeholder="姓名"/>
	</div>
	<div class="user">
		<div id="yonghu" style=""><img src="img/yhm.png" /></div>
		<input type="text" name="username" placeholder="教师账号" />
	</div>			
	<div class="password">
		<div id="yonghu"><img src="img/mm.png" /></div>
		<input type="password" name="pwd" placeholder="密码" >
	</div>
	<div class="password1">
		<div id="yonghu"><img src="img/mm.png" /></div>
		<input type="password" name="pwd1" placeholder="确认密码" >
	</div>
	<button class="btn">注册</button>
	</form>
</div>
</body>
</html>